﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Tauren.Business.Entity.Input
{
    public class Organization_InPut
    {
        public virtual int OrgId
        {
            get; set;
        }
        [Display(Name = "组织编码"), Required(ErrorMessage = "{0}不能为空!"), StringLength(10, ErrorMessage = "{0}不超过20个字符"), RegularExpression(@"^([a-zA-Z0-9_]){1,20}$", ErrorMessage = "请输入英文字符、数字组成的{0}")]
        public virtual string OrgCode { get; set; }
        /// <summary>
        /// 中文名称
        /// </summary>
        [Display(Name = "中文名称"), Required(ErrorMessage = "{0}不能为空!"), StringLength(100, ErrorMessage = "{0}不超过100个字符")]
        public virtual string CNName { get; set; }
        /// <summary>
        /// 英文名称
        /// </summary>
        [Display(Name = "英文名称"), Required(ErrorMessage = "{0}不能为空!"), StringLength(200, ErrorMessage = "{0}不超过200个字符")]
        public virtual string ENName { get; set; }
        public virtual int? ParentId { get; set; }
        public virtual int? UnitId { get; set; }
        public virtual string Phone { get; set; }
        public virtual string Contact { get; set; }
        public virtual int Level { get; set; }
    }
}
